<?php

use Illuminate\Database\Seeder;
use App\loan_customer;

class CustomerTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        $list = factory(loan_customer::class, 50)->make()->toArray();

        foreach ($list as &$v) {
            unset($v['status_desc']);
            unset($v['state_desc']);
        }

        loan_customer::insert($list);
    }
}
